import request from '@/utils/request'

// 创建MCU租户分类
export function createMcuTenantType(data) {
  return request({
    url: '/hardware/mcu-tenant-type/create',
    method: 'post',
    data: data
  })
}

export function createBatchMcuTenantType(data) {
  return request({
    url: '/hardware/mcu-tenant-type/create-batch',
    method: 'post',
    data: data
  })
}


// 更新MCU租户分类
export function updateMcuTenantType(data) {
  return request({
    url: '/hardware/mcu-tenant-type/update',
    method: 'put',
    data: data
  })
}

// 删除MCU租户分类
export function deleteMcuTenantType(id) {
  return request({
    url: '/hardware/mcu-tenant-type/delete?id=' + id,
    method: 'delete'
  })
}

// 获得MCU租户分类
export function getMcuTenantType(id) {
  return request({
    url: '/hardware/mcu-tenant-type/get?id=' + id,
    method: 'get'
  })
}

// 获得MCU租户分类List
export function getMcuTenantTypeList(query) {
  return request({
    url: '/hardware/mcu-tenant-type/list',
    method: 'get',
    params: query
  })
}

// 获得MCU租户分类分页
export function getMcuTenantTypePage(query) {
  return request({
    url: '/hardware/mcu-tenant-type/page',
    method: 'get',
    params: query
  })
}

// 导出MCU租户分类 Excel
export function exportMcuTenantTypeExcel(query) {
  return request({
    url: '/hardware/mcu-tenant-type/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
